PACKAGE=	tests

TESTSDIR=	${TESTSBASE}/sys/netinet6
FILESDIR=	${TESTSDIR}

ATF_TESTS_PYTEST=	test_ip6_output.py
ATF_TESTS_SH=		exthdr \
			mld \
			scapyi386 \
			redirect \
			divert \
			forward6 \
			output6 \
			lpm6 \
			fibs6 \
			ndp \
			proxy_ndp \
			addr6

TEST_METADATA.divert+=	execenv="jail"		\
			execenv_jail_params="vnet allow.raw_sockets"
TEST_METADATA.exthdr+=	execenv="jail"		\
			execenv_jail_params="vnet allow.raw_sockets"
TEST_METADATA.forward6+= execenv="jail"		\
			execenv_jail_params="vnet allow.raw_sockets"
TEST_METADATA.ndp+=	execenv="jail"		\
			execenv_jail_params="vnet allow.raw_sockets"
TEST_METADATA.output6+=	execenv="jail"		\
			execenv_jail_params="vnet allow.raw_sockets" \
			required_programs="python"
TEST_METADATA.proxy_ndp+= execenv="jail"		\
			execenv_jail_params="vnet allow.raw_sockets"
TEST_METADATA.redirect+= execenv="jail"		\
			execenv_jail_params="vnet allow.raw_sockets"
TEST_METADATA.scapyi386+= execenv="jail"		\
			execenv_jail_params="vnet allow.raw_sockets"
TEST_METADATA.addr6+= execenv="jail"		\
			execenv_jail_params="vnet allow.raw_sockets"

${PACKAGE}FILES+=	exthdr.py \
			mld.py \
			scapyi386.py \
			ra.py \
			redirect.py

${PACKAGE}FILESMODE_exthdr.py=	0555
${PACKAGE}FILESMODE_mld.py=	0555
${PACKAGE}FILESMODE_scapyi386.py=0555
${PACKAGE}FILESMODE_ra.py=0555
${PACKAGE}FILESMODE_redirect.py=0555

TESTS_SUBDIRS+=	frag6

.include <bsd.test.mk>
